AHardwareBuffer_lockAndGetInfo

Lock an AHardwareBuffer for direct CPU access.

This function is the same as the above lock function, but passes back additional information about the bytes per pixel and the bytes per stride of the locked buffer. If the bytes per pixel or bytes per stride are unknown or variable, or if the underlying mapper implementation does not support returning additional information, then this call will fail with INVALID_OPERATION

Available since API level 29.

static if(__ANDROID_API__ >= 29)
int
AHardwareBuffer_lockAndGetInfo
(,
uint64_t usage
,
int32_t fence
,
const ARect* rect
,,,)

Meta